from django.db import models

# Create your models here.
import datetime
class Constant(models.Model):
    name = models.CharField(max_length=255, verbose_name='键名', unique=True, null=False, blank=False)
    value = models.CharField(max_length=255, verbose_name='键值', null=True, blank=True)
    remark = models.CharField(max_length=255, verbose_name='备注', null=True, blank=True)
    create_time = models.DateTimeField(verbose_name='创建时间', default=datetime.datetime.now)

    class Meta:
        db_table = 'beebos_constant'
        verbose_name = '常量信息'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.name
